const Layout = () => import("@/layout/index.vue");

// 系统设置
// 用户管理
// 权限管理

const routes = [
    {
        path: "/system",
        name: "System",
        component: Layout,
        meta: {
            title: "系统设置",
            icon: "Setting",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/system/setting",
                name: "SystemSetting",
                component: () => import("@/pages/system/setting.vue"),
                meta: {
                    title: "通用设置",
                    icon: "setting",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/system/source",
                name: "SystemSource",
                component: () => import("@/pages/system/source.vue"),
                meta: {
                    title: "渠道管理",
                    icon: "source",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            },
            {
                path: "/system/zone",
                name: "SystemZone",
                component: () => import("@/pages/system/zone.vue"),
                meta: {
                    title: "区域管理",
                    icon: "zone",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            },
            {
                path: "/system/status",
                name: "SystemStatus",
                // component: () => import("@/pages/system/visit.vue"),
                component: () => import("@/components/common-list.vue"),
                meta: {
                    title: "回访状态",
                    icon: "zone",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                    table: "tk_config_status",
                }
            }

        ],
    }
];

export default routes;
